package com.hangyutech.strelitzia.utils;


import java.util.Objects;

import javax.annotation.Resource;

public class TokenCheckUtil {

    @Resource
    private RedisUtil redisUtil;

    public boolean isFrontToken(String token) {
        String tokenKey = redisUtil.redisPrefix + "token:" + token;
        System.out.println(tokenKey);
        Object redisResult = redisUtil.get(redisUtil.redisPrefix + "token:" + token);
        return !Objects.isNull(redisResult);
    }
}
